package com.lwk.user.service;

import com.lwk.springframework.*;

@Component("userService")
public class UserService implements ApplicationContextAware {

    @Autowired
    private OrderService orderService;

    private LwkApplicationContext applicationContext;

    public void test() {
        System.out.println(orderService);
        System.out.println(applicationContext);

    }

    @Override
    public void setApplicationContext(LwkApplicationContext applicationContext) {
        this.applicationContext = applicationContext;
    }
}
